﻿using System;
using WebUI.BL.User;

namespace WebUI.AdminSite.User
{
    public partial class UserMgmt : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }

        private void BindData()
        {
            UserBL repository = new UserBL();
            grdUser.DataSource = repository.Get_Admin_User(txtName.Text, txtLoginId.Text, txtemail.Text, txtphone.Text, drpStatus.SelectedValue);
            grdUser.DataBind();
        }

        protected void btnSearchClick(object sender, EventArgs e)
        {
            BindData();
        }
    }
}